operator (*) Interface

public interface operator (*)

Module Procedures

public function torch_tensor_multiply(tensor1, tensor2) result(output)

Overloads multiplication operator for two tensors.

Arguments

Type IntentOptional Attributes Name
type(torch_tensor), intent(in) :: tensor1
type(torch_tensor), intent(in) :: tensor2

Return Value type(torch_tensor)

public function torch_tensor_premultiply_int8(scalar, tensor) result(output)

Overloads multiplication operator for a scalar of type int8 and a tensor.

Arguments

Type IntentOptional Attributes Name
integer(kind=int8), intent(in), target :: scalar
type(torch_tensor), intent(in) :: tensor

Return Value type(torch_tensor)

public function torch_tensor_postmultiply_int8(tensor, scalar) result(output)

Overloads multiplication operator for a tensor and a scalar of type int8.

Arguments

Type IntentOptional Attributes Name
type(torch_tensor), intent(in) :: tensor
integer(kind=int8), intent(in) :: scalar

Return Value type(torch_tensor)

public function torch_tensor_premultiply_int16(scalar, tensor) result(output)

Overloads multiplication operator for a scalar of type int16 and a tensor.

Arguments

Type IntentOptional Attributes Name
integer(kind=int16), intent(in), target :: scalar
type(torch_tensor), intent(in) :: tensor

Return Value type(torch_tensor)

public function torch_tensor_postmultiply_int16(tensor, scalar) result(output)

Overloads multiplication operator for a tensor and a scalar of type int16.

Arguments

Type IntentOptional Attributes Name
type(torch_tensor), intent(in) :: tensor
integer(kind=int16), intent(in) :: scalar

Return Value type(torch_tensor)

public function torch_tensor_premultiply_int32(scalar, tensor) result(output)

Overloads multiplication operator for a scalar of type int32 and a tensor.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in), target :: scalar
type(torch_tensor), intent(in) :: tensor

Return Value type(torch_tensor)

public function torch_tensor_postmultiply_int32(tensor, scalar) result(output)

Overloads multiplication operator for a tensor and a scalar of type int32.

Arguments

Type IntentOptional Attributes Name
type(torch_tensor), intent(in) :: tensor
integer(kind=int32), intent(in) :: scalar

Return Value type(torch_tensor)

public function torch_tensor_premultiply_int64(scalar, tensor) result(output)

Overloads multiplication operator for a scalar of type int64 and a tensor.

Arguments

Type IntentOptional Attributes Name
integer(kind=int64), intent(in), target :: scalar
type(torch_tensor), intent(in) :: tensor

Return Value type(torch_tensor)

public function torch_tensor_postmultiply_int64(tensor, scalar) result(output)

Overloads multiplication operator for a tensor and a scalar of type int64.

Arguments

Type IntentOptional Attributes Name
type(torch_tensor), intent(in) :: tensor
integer(kind=int64), intent(in) :: scalar

Return Value type(torch_tensor)

public function torch_tensor_premultiply_real32(scalar, tensor) result(output)

Overloads multiplication operator for a scalar of type real32 and a tensor.

Arguments

Type IntentOptional Attributes Name
real(kind=real32), intent(in), target :: scalar
type(torch_tensor), intent(in) :: tensor

Return Value type(torch_tensor)

public function torch_tensor_postmultiply_real32(tensor, scalar) result(output)

Overloads multiplication operator for a tensor and a scalar of type real32.

Arguments

Type IntentOptional Attributes Name
type(torch_tensor), intent(in) :: tensor
real(kind=real32), intent(in) :: scalar

Return Value type(torch_tensor)

public function torch_tensor_premultiply_real64(scalar, tensor) result(output)

Overloads multiplication operator for a scalar of type real64 and a tensor.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), target :: scalar
type(torch_tensor), intent(in) :: tensor

Return Value type(torch_tensor)

public function torch_tensor_postmultiply_real64(tensor, scalar) result(output)

Overloads multiplication operator for a tensor and a scalar of type real64.

Arguments

Type IntentOptional Attributes Name
type(torch_tensor), intent(in) :: tensor
real(kind=real64), intent(in) :: scalar

Return Value type(torch_tensor)